import instance from '../../axios.service';
import {DeviceItem, DeviceStatus, ResDto} from "../../types/common";
import {basePath} from '../config'
export default {
    getList: (status?: DeviceStatus): Promise<ResDto> => instance.get(`${basePath}/apply-admin/device/list`, {params: {status}}),// 设备列表
    edit: (data: DeviceItem): Promise<ResDto> => instance.post(`${basePath}/apply-admin/device/edit`, data),// 编辑设备
    add: (data: DeviceItem): Promise<ResDto> => instance.post(`${basePath}/apply-admin/device/add`, data),// 添加设备

}
